import { createHashRouter ,createBrowserRouter} from 'react-router-dom';
import { lazy } from 'react';

const Home = lazy(() => import('../components/Home'));
const FileUpload = lazy(() => import('../components/FileUpload'));
const Translator = lazy(() => import('../components/Translator'));

const router = createBrowserRouter([
  {
    path: '/',
    element: <Home />,
  },
  {
    path: '/FileUpload',
    element: <FileUpload />,
  },
  {
    path: '/Translator',
    element: <Translator />,
  },
]);

export default router;
